package RMI;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

/**
 *
 * @author Marcelo Montaño
 */
public class RMI_Servidor {
    
     /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
            Registry registro = LocateRegistry.createRegistry(2345);
            registro.rebind("rmi", new ClaseServidor());
            System.out.println("Servidor iniciado...");
        }catch(Exception e){
            System.out.println(e.getMessage());
        }
    }
}
